class SearchesController < ApplicationController

  def tag
    @posts = Post.find_tagged_with(params[:tag], :conditions => "published = true")
  end
  
  def dates
    year ||= params[:year]
    month ||= params[:month]
    @posts = Post.find_by_date(year, month)
  end
  
end
